﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GL.Tools;

namespace WAD.WEB.AppCode
{
    public class EmailHelper
    {
        public const String FROM_ADDRESS = "post@711688.net";
        public const String PASSWORD = "v112233123";
        public const String SMTP_HOST = "smtp.exmail.qq.com";

        /// <summary>
        /// 发送邮件
        /// </summary>
        /// <param name="toAddress"></param>
        /// <param name="title"></param>
        /// <param name="body"></param>
        public static void Send(String toAddress, String title, String body)
        {
            EmailUtil.Send(WJXConfig.EmailConfig.From_Email, WJXConfig.EmailConfig.From_Password, toAddress, "微街秀", title, body, WJXConfig.EmailConfig.SMTP_HOST);
        }
    }
}